{literal}
<script language="javascript">
    function newwindow(url, width, height)
    {        
        var LargeWin=window.open(url,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width="+(width+20)+",height="+(height+20));
        LargeWin.window.focus();
    } 
</script>
{/literal}

<br>	
   &nbsp;&nbsp;&nbsp;<font size="3px">User mail visiting statistics:</font>
<br><br>

	
	<table align1="center" cellpadding="2" cellspacing="2" border="1"> 
		<tr style="background-color: #ffffcf; border: solid 1px #3997FF;">
			<td  align="center" >User</td>
			<td  align="center" >Status</td>
			<td  align="center" >Qty mail was sent</td>
			<td  align="center" >Qty mail response</td>
			<td  align="center" colspan=2> mail response statistics </td>
		</tr>
	{foreach from=$users item=user}
		<tr  style="background-color: #ffffff; border: solid 1px #3997FF;">
			<td  align="right">{$user.name}</td>
			<td  align="right">{$user.user}</td>
			<td  align="right">{$user.mail_request_qty}&nbsp;&nbsp;</td>
			<td  align="right"><font color="blue">{$user.mail_response_qty}</font>&nbsp;&nbsp;</td>
			<td><table cellpadding="0" cellspacing="0" style="border: solid 1px #3997FF; width:200;"><tr>{if $user.mail_response_qty!="" && ($user.mail_response_qty/$mail_response_sum*200|string_format:"%d" > 0)}<td style="background-color: #ef9faf; width:{$user.mail_response_qty/$mail_response_sum*200|string_format:"%d"}; height:13;"></td>{/if}{if ($user.mail_response_qty/$mail_response_sum*200|string_format:"%d" < 200)}<td style="background-color: #efefff; height:13;"></td>{/if}<tr/></table></td>
			<td  align="right"><font color="#777777">{if ($user.mail_response_qty!="" && $user.mail_response_qty!=0)}{$user.mail_response_qty/$mail_response_sum*100|string_format:"%.1f"}%{/if}</font></td>
			<!--
				
			<td align="right">&nbsp;{if $user.sum_rating=="" || $user.sum_rating==0}0%{else}{$user.sum_rating/$rating_sum*100|string_format:"%d"}%{/if}</td>
			-->
			
		</tr>
	{/foreach}
		<tr  style="background-color: #f1fafa; border: solid 1px #3997FF;">
			<td  align="right" colspan=6> <font color="blue">{$mail_response_sum}</font> = Total qty  &nbsp;&nbsp;&nbsp; </font> <font color="#666663">100%</font></td>
		</tr>
	</table>
		
   
<br><br>
&nbsp;
<input type='button' value='Cancel' class="button" onclick="javascript: history.back();"/>   &nbsp; <input type='button' value='Print' class="button" onclick="newwindow('?{$add_url}&page=print_u1&doPrint=doPrint', 800, 600);"/>
